package icu.zqyhdm.blog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Description
 * @Author lifu
 * @Date 2021/6/22 14:44
 */
@SpringBootApplication
@EnableDiscoveryClient // Nacos服务注册
@EnableTransactionManagement //  开始事务
@EnableAsync // 开始异步
@ComponentScan(basePackages = "icu.zqyhdm")
@EnableFeignClients(basePackages = "icu.zqyhdm.blog.openFeign") // 服务调用
public class BlogApplication {
    public static void main(String[] args) {
        SpringApplication.run(BlogApplication.class,args);
    }
}
